<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class UserIntegral extends Model
{
    protected $table = 'user_integrals';
    public $timestamps = false;//不进行时间维护
    protected $fillable = [
        "integral",
    ];
    //做表的关联
    public function user(){
        return $this->belongsTo(User::class);
    }
}
